package cn.ekuma.epos.panel;


import e.odbo.data.bean.I_BaseBean;
import cn.ekuma.data.ui.swing.AbstractDTOTableModel;
import cn.ekuma.epos.datalogic.I_DataLogicCustomers;
import cn.ekuma.epos.datalogic.I_DataLogicSystem;
import cn.ekuma.rabbit.spi.I_ModelPart;

import com.openbravo.pos.base.AppView;
import com.openbravo.pos.base.BeanFactoryException;
import com.openbravo.pos.base.I_AppView;
import com.openbravo.pos.model.AbstractPosSwingModel;


public abstract class AbstractJModelFinishingPanel<T extends I_BaseBean,E extends I_BaseBean> extends AbstractJFinishingPanel<T,E> implements I_ModelPart<AbstractPosSwingModel> {
	
	public AbstractJModelFinishingPanel(AbstractDTOTableModel tableModel) {
		super(tableModel);
	}

	protected AbstractPosSwingModel mode;
	protected I_DataLogicCustomers dlCustomers;
	protected I_DataLogicSystem dlSystem;
	
	@Override
	public void setModel(AbstractPosSwingModel mode) {
		this.mode=mode;
		dlSales =mode.getDLERP();
		dlCustomers = mode.getDLCustomer();
		dlSystem=mode.getDLSystem();
	}

	@Override
	protected void initPanel(I_AppView app) throws BeanFactoryException {
		initFinishPanel((AppView) app);
	}

	protected abstract void initFinishPanel(AppView app) throws BeanFactoryException;
	
	
}
